//
//  HomeTableViewController.swift
//  新浪微播
//
//  Created by lxw on 15/12/14.
//  Copyright © 2015年 lxw. All rights reserved.
//

import UIKit
import AFNetworking

class HomeTableViewController: BaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        visitorLoginView?.setupInfo("登录后，别人评论你的微博，发给你的消息，都会在这里收到通知", imageName: nil)
        
        demo()
    }
    
    private func demo(){
        let AFN = AFHTTPSessionManager()
        let urlString = "http://www.baidu.com"
        AFN .GET(urlString, parameters: nil, progress: { (p) -> Void in
            print("+++")
            print(p)
            }, success: { (task, result) -> Void in
                print("----")
                print(result)
            }) { (task, error) -> Void in
                print(error)
        }
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
        
    }

    // MARK: - Table view data source

    override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        // #warning Incomplete implementation, return the number of sections
        return 0
    }

    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return 0
    }


}
